package designPatterns.P10_享元模式_Flyweight.P01_Shape;

public class Circle implements Shape {
    private Integer x;
    private Integer y;
    private Integer radius;
    private String color;

    public Circle() {
    }

    public Circle(String color) {
        this.color = color;
    }

    public Circle(Integer x, Integer y, Integer radius, String color) {
        this.x = x;
        this.y = y;
        this.radius = radius;
        this.color = color;
    }

    public Integer getX() {
        return x;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public Integer getY() {
        return y;
    }

    public void setY(Integer y) {
        this.y = y;
    }

    public Integer getRadius() {
        return radius;
    }

    public void setRadius(Integer radius) {
        this.radius = radius;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("绘制圆形：x=" + x + ", y=" + y + ", radius=" + radius + ", color=" + color);
    }
}
